#!/bin/bash
script_path=$(cd `dirname $0`; pwd)
echo "script_path : $script_path"
py_name=`ls $script_path | grep liyuexiuxian.py`
echo "py_name: $py_name"
echo "stop..."
pid=`ps -ef | grep $py_name | grep -v grep | awk '{print $2}'`
echo "$pid"
if [ -n "$pid" ]
then
echo "ok"
kill -9 $pid
fi